package groupon.user.bo.service;

import groupon.user.model.User;
import groupon.user.model.UserSearch;

import java.util.List;

public interface ManagerUserService {
	public void save(User user) throws ServiceException;;
	public boolean delete(Integer id) throws ServiceException;;
	public List<User> searchAll() throws ServiceException;;
	public User update(User user) throws ServiceException;;
	public User findUser(Integer id) throws ServiceException;
	public User findUserByUsernameOrEmail(String username, String email) throws ServiceException;
	public List<User> findInRange(int firstResult, int maxResults) throws ServiceException;
	List<User> searchUserInRange(UserSearch userSearch, int firstResult, int maxResults)
			throws ServiceException;
}
